package com.lonelyzhe.springboot.mapper;

import com.lonelyzhe.springboot.bean.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookMapper {
    List<Book> getAllBookList();

    List<Book> getBookList(@Param("category_id")int category_id);

    void insertBook(@Param("book")Book book);

    void updateBook(@Param("book")Book book);

    void deleteBook(@Param("book_id")int book_id);
}
